package com.liuning.graduationdemo.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 病历表
 * </p>
 *
 * @author pumpkin
 * @since 2022-06-05
 */
@Getter
@Setter
@TableName("sys_medical_record")
@ApiModel(value = "MedicalRecord对象", description = "病历表")
public class MedicalRecord implements Serializable {

    private static final long serialVersionUID = 1L;

      @ApiModelProperty("id")
      @TableId(value = "id", type = IdType.AUTO)
      private Integer id;

      @ApiModelProperty("医生id")
      private Integer doctorId;

      @ApiModelProperty("医生姓名")
      @TableField(exist = false)
      private String doctorName;

      @ApiModelProperty("患者id")
      private Integer patientId;

      @ApiModelProperty("患者用户名")
      @TableField(exist = false)
      private String patientName;

      @ApiModelProperty("病历内容")
      private String content;

      @ApiModelProperty("备注")
      private String remark;

      @ApiModelProperty("病历创建时间")
      @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
      private LocalDateTime createTime;

      @ApiModelProperty("病历是否删除，0未删除，1删除")
      @TableLogic
      @TableField("deleted")
      private Integer deleted;


}
